<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the Notification constructor from the Class Notification class from the dart:html library, for the Dart programming language.">
  <title>Notification constructor - Notification class - dart:html library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="dart-html/dart-html-library.html">dart:html</a></li>
    <li><a href="dart-html/Notification-class.html">Notification</a></li>
    <li class="self-crumb">Notification factory constructor</li>
  </ol>
  <div class="self-name">Notification</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="dart-html/dart-html-library.html">dart:html</a></li>
      <li><a href="dart-html/Notification-class.html">Notification</a></li>
      <li class="self-crumb">Notification factory constructor</li>
    </ol>
    
    <h5>Notification class</h5>
    <ol>
    
      <li class="section-title"><a href="dart-html/Notification-class.html#constructors">Constructors</a></li>
      <li><a href="dart-html/Notification/Notification.html">Notification</a></li>
    
      <li class="section-title">
        <a href="dart-html/Notification-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-html/Notification/actions.html">actions</a></li>
      <li><a href="dart-html/Notification/badge.html">badge</a></li>
      <li><a href="dart-html/Notification/body.html">body</a></li>
      <li><a href="dart-html/Notification/data.html">data</a></li>
      <li><a href="dart-html/Notification/dir.html">dir</a></li>
      <li><a href="dart-html/Notification/icon.html">icon</a></li>
      <li><a href="dart-html/Notification/image.html">image</a></li>
      <li><a href="dart-html/Notification/lang.html">lang</a></li>
      <li><a href="dart-html/Notification/onClick.html">onClick</a></li>
      <li><a href="dart-html/Notification/onClose.html">onClose</a></li>
      <li><a href="dart-html/Notification/onError.html">onError</a></li>
      <li><a href="dart-html/Notification/onShow.html">onShow</a></li>
      <li><a href="dart-html/Notification/renotify.html">renotify</a></li>
      <li><a href="dart-html/Notification/requireInteraction.html">requireInteraction</a></li>
      <li><a href="dart-html/Notification/silent.html">silent</a></li>
      <li><a href="dart-html/Notification/tag.html">tag</a></li>
      <li><a href="dart-html/Notification/timestamp.html">timestamp</a></li>
      <li><a href="dart-html/Notification/title.html">title</a></li>
      <li><a href="dart-html/Notification/vibrate.html">vibrate</a></li>
      <li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-html/EventTarget/on.html">on</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-html/Notification-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-html/Notification/close.html">close</a></li>
      <li class="inherited"><a href="dart-html/EventTarget/addEventListener.html">addEventListener</a></li>
      <li class="inherited"><a href="dart-html/EventTarget/dispatchEvent.html">dispatchEvent</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="dart-html/EventTarget/removeEventListener.html">removeEventListener</a></li>
      <li class="inherited"><a href="dart-core/Object/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="dart-html/Notification-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li>
    
      <li class="section-title"><a href="dart-html/Notification-class.html#static-properties">Static properties</a></li>
      <li><a href="dart-html/Notification/maxActions.html">maxActions</a></li>
      <li><a href="dart-html/Notification/permission.html">permission</a></li>
      <li><a href="dart-html/Notification/supported.html">supported</a></li>
    
      <li class="section-title"><a href="dart-html/Notification-class.html#static-methods">Static methods</a></li>
      <li><a href="dart-html/Notification/requestPermission.html">requestPermission</a></li>
    
      <li class="section-title"><a href="dart-html/Notification-class.html#constants">Constants</a></li>
      <li><a href="dart-html/Notification/clickEvent-constant.html">clickEvent</a></li>
      <li><a href="dart-html/Notification/closeEvent-constant.html">closeEvent</a></li>
      <li><a href="dart-html/Notification/errorEvent-constant.html">errorEvent</a></li>
      <li><a href="dart-html/Notification/showEvent-constant.html">showEvent</a></li>
    
    </ol>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-constructor">Notification</span> constructor</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">Notification</span>(<wbr><span class="parameter" id="-param-title"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">title</span>, {</span> <span class="parameter" id="-param-dir"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">dir</span>: <span class="default-value">null</span></span> <span class="parameter" id="-param-body"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">body</span>: <span class="default-value">null</span></span> <span class="parameter" id="-param-lang"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">lang</span>: <span class="default-value">null</span></span> <span class="parameter" id="-param-tag"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">tag</span>: <span class="default-value">null</span></span> <span class="parameter" id="-param-icon"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">icon</span>: <span class="default-value">null</span></span> })
    </section>

    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">factory Notification(String title,
    {String dir: null,
    String body: null,
    String lang: null,
    String tag: null,
    String icon: null}) {
  var parsedOptions = {};
  if (dir != null) parsedOptions[&#39;dir&#39;] = dir;
  if (body != null) parsedOptions[&#39;body&#39;] = body;
  if (lang != null) parsedOptions[&#39;lang&#39;] = lang;
  if (tag != null) parsedOptions[&#39;tag&#39;] = tag;
  if (icon != null) parsedOptions[&#39;icon&#39;] = icon;
  return Notification._factoryNotification(title, parsedOptions);
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
